//
//  MYHomeController.swift
//  MYSinaWeico
//
//  Created by Magic Yu on 16/4/6.
//  Copyright © 2016年 Magic Yu. All rights reserved.
//

import UIKit

class MYHomeController: MYVisitTableViewController {

//    //定义用户是否登录的标记
////    var userLogin: Bool = false
//    var userLogin = false
//    
//    override func loadView() {
//        userLogin ? super.loadView() : prepareForVisitorLoginView()
//    }
//    
//    private func prepareForVisitorLoginView() {
//    
//        let v = MYVisitorLoginView()
////        v.backgroundColor = UIColor.redColor()
//        view = v
//    }
    
    override func viewDidLoad() {
        super.viewDidLoad()
        setUI()
    }
    
    private func setUI() {
    
        visitorView?.visitorSetInfo("关注一些人,回到这里看看有什么惊喜", imgName: "visitordiscover_feed_image_smallicon", isHome: true)
        //自定义导航栏上的按钮
        navigationItem.rightBarButtonItem = UIBarButtonItem(imgName: "navigationbar_pop", target: self, action: "push")
        navigationItem.leftBarButtonItem = UIBarButtonItem(imgName: "navigationbar_friendsearch", target: self, action: "push")
        
    }
    
    @objc private func push() {
    
        let temp = MYTempViewController()
        navigationController?.pushViewController(temp, animated: true)
        
        
    }
    
    

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        
    }

   
}





